<html><head>
      <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
   <title>Synchronise to code.google.com</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="create-repository-svn"><link rel="up" href="ch04.html" title="Chapter&nbsp;4.&nbsp;Howto"><link rel="prev" href="ch04s03.html" title="Define custom tags and commit messages"><link rel="next" href="apa.html" title="Appendix&nbsp;A.&nbsp;License"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e316"></a>Synchronise to code.google.com</h2></div></div></div><p>
			The next steps are required for the initial creation of a 
			remote repository.
		</p><div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"><p>
					Create a google-account and login to your account.
				</p></li><li class="listitem"><p>
					Create a google code project, from "MyFavorites-&gt;Create Project".
				</p><p>
					Base of project becomes e.g.: <span class="bold"><strong>https://code.google.com/p/create-repository-svn/</strong></span>
				</p></li><li class="listitem"><p>
					Aquire a "googlecode.com password".
				</p><p>
					Base is: <span class="bold"><strong>https://code.google.com/hosting/settings</strong></span>
				</p></li><li class="listitem"><p>
					Reset your repository - but be aware of the consequences.
					The reset deletes any repository content, thus you have to initially restore
					the contents.
					This is for the initial creation perfecly suitable, because some default entries
					are the only content for this case until now.
				</p><p>
				    The reset linkt is at the time of writing near the bottom of the page.
				</p><p>
				    Base is: <span class="bold"><strong>https://code.google.com/p/create-repository-svn/source/checkout</strong></span>
				</p><p>
				    Now you have an empty repository for the fresh initial setup by mirroring your local subversion repository.
				</p></li><li class="listitem"><p>
					Change into the "src/tests" directory.
				</p></li><li class="listitem"><p>
				  	Check contents of the file
				  	"remote-repository-code-google-com.cfg"
				  	for the required remote settings and adapt
					the remote account and repository as required.
				</p><p>
					Source the environment file "remote-repository-code-google-com.cfg".
				</p></li><li class="listitem"><p>
					Once the local settings are completed the remote synchronisation to
					the google-code repository is performed by call of "svnsyc".
					This requires the use of the google code repository password, which
					you can get and regenerate within your google developer account.
				</p><p>
					Than call first:
					</p><pre class="screen">
YOURACCOUNT=your-account@gmail.com
YOURPROJECT=https://your-project.googlecode.com/svn
YOURLOCALREPOSITORY=file:///you/local/path/to/local/repository/svn-local

svnsync init --username $YOURACCOUNT $YOURPROJECT $YOURLOCALREPOSITORY
</pre><p>

					Following call:
					</p><pre class="screen">
YOURACCOUNT=your-account@gmail.com
YOURPROJECT=https://your-project.googlecode.com/svn
YOURLOCALREPOSITORY=file:///you/local/path/to/local/repository/svn-local

svnsync sync --username $YOURACCOUNT $YOURPROJECT $YOURLOCALREPOSITORY
</pre><p>
										When a proxy is required, e.g. call for Tor proxies:
					</p><pre class="screen">
torsocks svnsync init --username $YOURACCOUNT $YOURPROJECT $YOURLOCALREPOSITORY
</pre><p>
				</p></li><li class="listitem"><p>
					If required call in case of lock errors:
					</p><pre class="screen">
torsocks svnsync sync --steal-lock --username $YOURACCOUNT $YOURPROJECT
</pre><p>
				</p></li><li class="listitem"><p>
				    The following example is valid for this project.
				</p><p>
					</p><pre class="screen">
YOURACCOUNT=my-account@gmail.com
YOURPROJECT=https://create-repository-svn.googlecode.com/svn
YOURLOCALREPOSITORY=file://${PWD}/svn-local

tsocks svnsync init --username $YOURACCOUNT $YOURPROJECT $YOURLOCALREPOSITORY
</pre><p>
				</p></li></ol></div></div></body></html>